INCLUDE = D:/eigen-3.4.0
# 以上需修改为对应电脑目录中的 eigen 库所在位置

all: $(INCLUDE)
	g++ -I $(INCLUDE) -o A ProA.cpp -std=c++11
	g++ -I $(INCLUDE) -o C ProC.cpp -std=c++11
	g++ -I $(INCLUDE) -o D ProD.cpp -std=c++11
	g++ -I $(INCLUDE) -o E ProE.cpp -std=c++11
	./A
	./C
	./D
	./E

test: $(INCLUDE)
	g++ -I $(INCLUDE) -o TestppForm TestppForm.cpp -std=c++11
	g++ -I $(INCLUDE) -o TestBspline TestBspline.cpp -std=c++11
	./TestBspline > result/testBsplineResult.txt
	./TestppForm > result/testppResult.txt
	python -u FigureppForm.py
	python -u FigureBspline.py

figure:
	python -u FigureProA.py
	python -u FigureProC.py
	python -u FigureProE.py

cleantest:
	rm TestBspline TestppForm -f

clean:
	rm A C D E -f